import httpInstance from '@/utils/http'

// /category
export const getCategoryList = (id) => httpInstance({ url: '/category', params: { id } })

// /category/sub/filter
export const getCategorySubList = (id) => httpInstance({ url: '/category/sub/filter', params: { id } })

// /category/goods/temporary
export const getGoodsList = (data) => httpInstance({
    url: '/category/goods/temporary',
    method: 'POST',
    data
})
